﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQex
{
    public static class Extentions
    {
        public static int CountOf(this List<int> collection, int data)
        {
            int count = 0;
            foreach (var item in collection)
            {
                if (item == data)
                {
                    count++;
                }
            }

            return count;
        }
    }
}
